﻿using System;

namespace Mono.Cecil.Cil
{
	// Token: 0x0200012D RID: 301
	public sealed class EmbeddedPortablePdbReader : ISymbolReader, IDisposable
	{
		// Token: 0x06000B76 RID: 2934 RVA: 0x00033F14 File Offset: 0x00032114
		internal EmbeddedPortablePdbReader(PortablePdbReader reader)
		{
			bool flag = reader == null;
			if (flag)
			{
				throw new ArgumentNullException();
			}
			this.reader = reader;
		}

		// Token: 0x06000B77 RID: 2935 RVA: 0x00033F40 File Offset: 0x00032140
		public ISymbolWriterProvider GetWriterProvider()
		{
			return new EmbeddedPortablePdbWriterProvider();
		}

		// Token: 0x06000B78 RID: 2936 RVA: 0x00033F58 File Offset: 0x00032158
		public bool ProcessDebugHeader(ImageDebugHeader header)
		{
			return this.reader.ProcessDebugHeader(header);
		}

		// Token: 0x06000B79 RID: 2937 RVA: 0x00033F78 File Offset: 0x00032178
		public MethodDebugInformation Read(MethodDefinition method)
		{
			return this.reader.Read(method);
		}

		// Token: 0x06000B7A RID: 2938 RVA: 0x00006142 File Offset: 0x00004342
		public void Dispose()
		{
			this.reader.Dispose();
		}

		// Token: 0x04000712 RID: 1810
		private readonly PortablePdbReader reader;
	}
}
